unity rotate around pivot c#

61

unity rotate around pivot c# -

public Transform customPivot;

void Update()
{
    transform.RotateAround(customPivot.position, Vector3.up, 20 * Time.deltaTime);
}

Comments

Submit
0 Comments